package com.xry.healthy.controller;

import com.xry.common.core.domain.R;
import com.xry.healthy.service.ConsultService;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**问诊咨询
 * @Author：ypc
 * @Date：2023/9/30
 * @Description：
 */
@RestController
@RequestMapping("/consult")
public class ConsultController {

@Autowired
    private  ConsultService consultService;

    @GetMapping("/administrative-office")//所有科室
    public R administrative(){
        return consultService.administrative();
    }



    @GetMapping("/doctorInfo/{id}")
    public R  doctorInfo(@PathVariable Long id){ //根据所在科室查询出所有该科室的医生信息
        return consultService.doctorInfo(id);
    }



}
